﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Users/Manage.Master" AutoEventWireup="true" CodeBehind="ViewActiveAuction.aspx.cs" Inherits="OnlineAuction.Admin.ViewActiveAuction" %>
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_Css" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_TopBar" runat="server">
    <div style="text-align: center;">
        <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
        <asp:Button ID="btnsearch" runat="server" Text="search" OnClick="btnsearch_Click" />
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_Content" runat="server">
    <table cellpadding="5" cellspacing="5" class="style1">
        <caption style="font-size: larger; font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #FF6600">Items Selling</caption>
        <tr>
            <td style="text-align: center">
                <asp:GridView ID="grvAuction" runat="server" AutoGenerateColumns="false" Width="679px"
                    OnRowCommand="grvAuction_RowCommand" OnPageIndexChanging="grvAuction_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderText="Auction ID">
                            <ItemTemplate>
                                <asp:Label ID="lbCategoryName" runat="server" Text='<%# Bind("AuctionID") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Item Name">
                            <ItemTemplate>
                                <asp:Label ID="lbCategoryLogo" runat="server" Text='<%# Bind("ItemName") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Time Finish Auction">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("LeftDays") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Seller">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("Seller") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Block" ShowHeader="False">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False"
                                    CommandName="Block" CommandArgument='<%# Eval("AuctionID") %>' Text='Block'
                                    OnClientClick="if (!window.confirm('Are you sure you want to block this auction?')) return false;"
                                    ></asp:LinkButton>
                                </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <asp:Label ID="lbEmpty" runat="server" Text="Can't find any user" />
                    </EmptyDataTemplate>
                </asp:GridView>
                <cc1:collectionpager id="cpUser" runat="server" sectionpadding="10" slidersize="5">
                </cc1:collectionpager>
            </td>
        </tr>
        <tr>
            <td style="height: 30px; text-align: center" />
        </tr>
    </table>
</asp:Content>
